package com.domor.dao.system;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface RoleDao {

    List<Map<String, Object>> query(Map<String, Object> params);
    List<Map<String, Object>> getRoles();
    Map<String,Object> getById(int id);

    void insert(Map<String, Object> params);
    void update(Map<String, Object> params);
    void delete(Map<String, Object> params);

    List<Integer> getRights(int roleId);
    void deleteRights(int roleId);
    void saveRights(Map<String, Object> rights);
}
